package it.pride.primefacesShowcase.service;

import it.pride.primefacesShowcase.filters.Filter;
import it.pride.primefacesShowcase.model.Anagrafica;
import it.pride.primefacesShowcase.model.User;
import java.util.Date;

import java.util.List;
import java.util.Map;
import org.primefaces.model.SortOrder;

/**
 * Created by IntelliJ IDEA.
 * User: lbonacina
 * Date: 25/07/11
 * Time: 15.59
 */
public interface UserService {

    public List<User> findAll() ;

    public List<Anagrafica> findAllAnag() ;
    
    public List<User> findForLazyDatatable(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) ;            
    public int countForLazyDatatable(Map<String, String> filters) ;        

    
    public List<User> findForExtLazyDatatable(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters, List<Filter> additionalFilters) ;            
    public int countForExtLazyDatatable(Map<String, String> filters, List<Filter> additionalFilters) ;        
    
    public User findById(Long id) ;    
    
    public List<String> findAllCities() ;

    public List<String> findAllProvinces() ;
    
    //public List<User> findForLazyDatatable(Map<String, Object> filters) ;        
    //public List<String> findCitiesForLazyDatatable(Map<String, String> filters) ;        
    
}
